import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

//付款申请创建
export function paymentApplyCreate(params) {
  return request({
    url: `${base}/api/finance/payment_apply/create`,
    method: 'post',
    data: params,
  })
}
//付款申请列表
export function paymentApplyList(params) {
  return request({
    url: `${base}/api/finance/payment_apply/list`,
    method: 'post',
    data: params,
  })
}
// 删除接口
export function paymentApplyDelete(params) {
  return request({
    url: `${base}/api/finance/payment_apply/delete`,
    method: 'post',
    data: params,
  })
}
// 撤销接口
export function paymentApplyCancelReview(params) {
  return request({
    url: `${base}/api/finance/payment_apply/cancel_review`,
    method: 'post',
    data: params,
  })
}
// 发送审批接口
export function paymentApplySendReview(params) {
  return request({
    url: `${base}/api/finance/payment_apply/send_review`,
    method: 'post',
    data: params,
  })
}
// 详情接口
export function paymentApplyDetail(params) {
  return request({
    url: `${base}/api/finance/payment_apply/detail`,
    method: 'post',
    data: params,
  })
}
// 更新接口
export function paymentApplyUpdatel(params) {
  return request({
    url: `${base}/api/finance/payment_apply/update`,
    method: 'post',
    data: params,
  })
}

// 创建承运商对账单
export function payable_applcreate(params) {
  return request({
    url: `${base}/api/finance/payable_apply/create`,
    method: 'post',
    data: params,
  })
}
// 创建承运商对账单列表
export function payable_appllist(params) {
  return request({
    url: `${base}/api/finance/payable_apply/list`,
    method: 'post',
    data: params,
  })
}
// 创建承运商详情
export function payable_appldetail(params) {
  return request({
    url: `${base}/api/finance/payable_apply/detail`,
    method: 'post',
    data: params,
  })
}
// 创建承运商编辑
export function payable_applupdate(params) {
  return request({
    url: `${base}/api/finance/payable_apply/update`,
    method: 'post',
    data: params,
  })
}
// 发送审核
export function payable_applsend_review(params) {
  return request({
    url: `${base}/api/finance/payable_apply/send_review`,
    method: 'post',
    data: params,
  })
}
// 取消审核
export function payable_applcancel_review(params) {
  return request({
    url: `${base}/api/finance/payable_apply/cancel_review`,
    method: 'post',
    data: params,
  })
}
//审核记录的待处理
export function record_stay_list(params) {
  return request({
    url: `${base}/api/examine/record/stay/list`,
    // url: `${base}/api/examine/record/cpeople/list`, 
    method: 'post',
    data: params,
  })
}
//抄送
export function record_already_list(params) {
  return request({
    // url: `${base}/api/examine/record/already/list`,
    url: `${base}/api/examine/record/cpeople/list`,
    method: 'post',
    data: params,
  })
}
//审核记录的抄送中
export function record_cpeople_list(params) {
  return request({
    // url: `${base}/api/examine/record/cpeople/list`,
    url: `${base}/api/examine/record/already/list`,
    method: 'post',
    data: params,
  })
}
//审核记录的由我发起
export function record_initiate_list(params) {
  return request({
    // url: `${base}/api/examine/record/initiate/list`,
    url: `${base}/api/examine/record/initiate/list`,
    method: 'post',
    data: params,
  })
}
// 审核流程接口
export function record_process_detail(params) {
  return request({
    url: `${base}/api/examine/record/process/detail`,
    method: 'post',
    data: params,
  })
}
// 审核流程接口
export function examine_record_update(params) {
  return request({
    url: `${base}/api/examine/record/update`,
    method: 'post',
    data: params,
  })
}
// 新增评论
export function examine_comment_create(params) {
  return request({
    url: `${base}/api/examine/comment/create`,
    method: 'post',
    data: params,
  })
}
// 删除评论
export function examine_comment_delete(params) {
  return request({
    url: `${base}/api/examine/comment/delete`,
    method: 'post',
    data: params,
  })
}
// 应付账款管理
export function finance_payment_list(params) {
  return request({
    url: `${base}/api/finance/payment/list`,
    method: 'post',
    data: params,
  })
}
// 修改功能
export function finance_payment_update(params) {
  return request({
    url: `${base}/api/finance/payment/update`,
    method: 'post',
    data: params,
  })
}
// 详情数据
export function finance_payment_detail(params) {
  return request({
    url: `${base}/api/finance/payment/detail`,
    method: 'post',
    data: params,
  })
}
// 非备用金账号
export function finance_invoice_book_box(params) {
  return request({
    url: `${base}/api/finance/invoice_book/box`,
    method: 'post',
    data: params,
  })
}
// 导入数据
export function finance_payment_import_update(params) {
  return request({
    url: `${base}/api/finance/payment/import_update`,
    method: 'post',
    data: params,
  })
}
// 导出数据
export function finance_payment_export(params) {
  return request({
    url: `${base}/api/finance/payment/export`,
    method: 'post',
    data: params,
  })
}
// 承运商导出
export function payable_apply_export(params) {
  return request({
    url: `${base}/api/finance/payable_apply/export`,
    method: 'post',
    data: params,
  })
}
// 报销申请导出
export function preimburse_apply_export(params) {
  //  // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/reimburse_apply/export`,
    method: 'post',
    data: params,
  })
}
// 备用金申请导出
export function petty_cash_apply_export(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/petty_cash_apply/export`,
    method: 'post',
    data: params,
  })
}
// 付款申请导出
export function payment_apply_export(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/payment_apply/export`,
    method: 'post',
    data: params,
  })
}
// 申请开票保存
export function invoice_apply_create(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/invoice_apply/create`,
    method: 'post',
    data: params,
  })
}
// 申请开票详情
export function invoice_apply_detail(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/invoice_apply/detail`,
    method: 'post',
    data: params,
  })
}
// 申请开票修改
export function invoice_apply_update(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/invoice_apply/update`,
    method: 'post',
    data: params,
  })
}
// 开票导出
export function invoice_apply_export(params) {
  // console.log(params, "preimburse_apply_export")
  return request({
    url: `${base}/api/finance/invoice_apply/export`,
    method: 'post',
    data: params,
  })
}
// 待开票列表数据的导出
export function invoice_apply_list_export(params) {
  // console.log(params, "preimburse_apply_export")
  return request({
    url: `${base}/api/finance/invoice_apply/list_export`,
    method: 'post',
    data: params,
  })
}

export function financet_payable_apply_delete(params) {
  // console.log(params, "preimburse_apply_export")
  return request({
    url: `${base}/api/finance/payable_apply/delete`,
    method: 'post',
    data: params,
  })
}
// 催办
export function examine_record_send_message(params) {
  // console.log(params, "preimburse_apply_export")
  return request({
    url: `${base}/api/examine/record/send_message`,
    method: 'post',
    data: params,
  })
}
// 【诊断】
export function finance_customer_diagnosis(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/customer/diagnosis`,
    method: 'post',
    data: params,
  })
}
// 费用明细
export function finance_customer_diagnosis_detail(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/customer/diagnosis_detail`,
    method: 'post',
    data: params,
  })
}
// 诊断的导出
export function finance_customer_diagnosis_export(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/customer/diagnosis_export`,
    method: 'post',
    data: params,
  })
}
// 不可报销原因
export function finance_reimburse_apply_check_carry(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/reimburse_apply/check_carry`,
    method: 'post',
    data: params,
  })
}
// 
export function finance_payable_apply_list_export(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/payable_apply/list/export`,
    method: 'post',
    data: params,
  })
}
// 付款申请的导出
export function payment_apply_list_export(params) {
  // // console.log(params,"preimburse_apply_export")
  return request({
    url: `${base}/api/finance/payment_apply/list/export`,
    method: 'post',
    data: params,
  })
}
// 中通申请导出
export function zto_recharge_apply_export(params) {
  return request({
    url: `${base}/api/finance/zto_recharge_apply/export`,
    method: 'post',
    data: params,
  })
}
// 转办接口
export function examine_record_transfer(params) {
  return request({
    url: `${base}/api/examine/record/transfer`,
    method: 'post',
    data: params,
  })
}
// 分摊金额
export function customer_diagnosis_reason(params) {
  return request({
    url: `${base}/api/finance/customer/diagnosis_reason`,
    method: 'post',
    data: params,
  })
}
// 客户诊断
export function diagnosis_customer(params) {
  return request({
    url: `${base}/api/finance/diagnosis/customer`,
    method: 'post',
    data: params,
  })
}
// 客户诊断详情
export function diagnosis_customer_detail(params) {
  return request({
    url: `${base}/api/finance/diagnosis/customer/detail`,
    method: 'post',
    data: params,
  })
}